//
//  BannerView.m
//  IBaby
//
//  Created by ZengYuan on 14/11/25.
//  Copyright (c) 2014年 com.zhongwei. All rights reserved.
//

#import "BannerView.h"
#import "Config.h"

@implementation BannerView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

-(id)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    self.backgroundColor=RGB(255, 223, 223);
    imgview = [[UIImageView alloc] initWithFrame:CGRectMake(30, (frame.size.height-28)/2, 28, 28)];
    imgview.image = [UIImage imageNamed:@"error2"];
    [self addSubview:imgview];

    label = [[UILabel alloc]initWithFrame:CGRectMake(70, (frame.size.height-20)/2, 200, 20)];
    label.textColor=RGB(82, 82, 82);
    label.font=[UIFont systemFontOfSize:16];
    [self addSubview:label];
    label.text=@"网络不可用";
    
    return self;
}

@end
